package com.hz.tgb.response.restful;

/**
 * 应用代码
 * 
 * @author hezhao on 2019/8/28 17:57
 */
public interface AppCode {
    int getCode();

    String getMessage();

    default boolean isSuccess() {
        return this.getCode() == 0;
    }
}
